using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using GameObjectsAndEquipment.Weapons;

namespace GameObjectsAndEquipment
{
    public class Equipment
    {
        private List<Item> backpackItems;
        private int backpackCapacity = 5;
        private Weapon weapon;
        private Item head;
        private Item legs;
        private int currentWeapon;


        public Weapon Weapon
        {
            get { return weapon; }
            set { weapon = value; }
        }

        public List<Item> BackpackItems
        {
            get { return backpackItems; }
            set { backpackItems = value; }
        }

        public Equipment()
        {
            backpackItems = new List<Item>();
        }

        public void AddItem(Item item)
        {
            if (backpackItems.Count < backpackCapacity)
            {
                backpackItems.Add(item);
            }
           
        }

        public void ChangeWeapon(Weapon weapon)
        {
            this.weapon = weapon;
        }
      

    }
}
